package com.huilian.iotbox.data.dao;

import com.huilian.iotbox.data.dto.CommodityPurchaseRestrictionDto;
import com.huilian.iotbox.data.dto.CommodityPurchaseRestrictionRecordDto;
import com.huilian.iotbox.data.vo.CommodityPurchaseRestrictionVo;

/**
 * @author LinYinDong
 * @date 2024/1/22 14:01
 */
public interface CommodityPurchaseRestrictionCommonDao {
    CommodityPurchaseRestrictionVo findOneCommodityPurchaseRestriction(CommodityPurchaseRestrictionDto commodityPurchaseRestrictionDto);

    CommodityPurchaseRestrictionVo findOneCommodityPurchaseRestrictionByOrderId(CommodityPurchaseRestrictionRecordDto commodityPurchaseRestrictionRecordDto);

    /**
     * 根据orderId查询
     */
    CommodityPurchaseRestrictionVo findCommodityPurchaseRestrictionByOrderId(Long orderId);
}
